import App from './App.vue'
import Vue from 'vue'
import store from './store/index.js'
import http from './api/index.js'
import common_mixin from './common/common_mixin.js'
import {
	router,
	RouterMount
} from './router.js'

Vue.config.productionTip = false
Vue.prototype.$http = http
App.mpType = 'app'
Vue.use(router)
Vue.use(common_mixin)

const app = new Vue({
	...App,
	store
})

//v1.3.5起 H5端 你应该去除原有的app.$mount();使用路由自带的渲染方式
// #ifdef H5
RouterMount(app, router, '#app')
// #endif

// #ifndef H5
app.$mount(); //为了兼容小程序及app端必须这样写才有效果
// #endif
